﻿using System.Linq;
using System.Web.Mvc;
using FantasyDraft2.Models;

namespace FantasyDraft2.Controllers
{
    public class HomeController : Controller
    {
        //
        // GET: /Home/
        FantasyDraftEntities fantasyDB = new FantasyDraftEntities();


        public ActionResult Index() 
        {
            var playerdata = fantasyDB.Players.ToList();

            return View(playerdata);
        }

    }
}
